<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JavaScript改变网页背景色</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<!--<header>1</header>-->
<!--<div class="main">2</div>-->
<!--<footer id="footer">3</footer>-->
<!--<a href="javascript:alert('hey gril');">texe</a>-->
<!--<a href='javascript:alert("hello");'>texe</a>-->
<input type="button" value="设为红色" onclick="color('red')">
<input type="button" value="设为黄色" onclick="color('yellow')">
<input type="button" value="设为蓝色" onclick="color('blue')">
<input type="button" value="设为绿色" onclick="color('green')">
<input type="color" onchange="bgzdy(this)" title="">

<script src="js/script.js"></script>
</body>
</html>